package com.bpr.webservice.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import com.bpr.webservice.domain.Usergroups;


public interface UsergroupsRepository extends JpaRepository<Usergroups,Long>{

	@Query("select u from Usergroups u where UPPER(u.usergroupname) like UPPER(:uname)")
	public Page<Usergroups> findUsergroupByGroupname(@Param("uname") String uname, Pageable page);
}
